Plays an audio CD track.
BOOL WINAPI BASS_CDPlay( |
Parameters
track | The track number to play... 1 = the first track. |
loop | Loop the track? |
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_CDINIT | BASS_CDInit has not been successfully called. |
BASS_ERROR_CDTRACK | The track number is invalid. |
BASS_ERROR_NOCD | There's no CD in the drive. |
BASS_ERROR_NOTAUDIO | The track is not an audio track. |
Remarks
Use CDCHANNEL with BASS_ChannelStop to stop the CD.
See also
BASS_CDInDrive, BASS_ChannelIsActive, BASS_ChannelSetAttributes, BASS_ChannelPause, BASS_ChannelStop